.class Lcom/example/location/LiveShowView$MyPageChangeListener;
.super Ljava/lang/Object;
.source "LiveShowView.java"

# interfaces
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/location/LiveShowView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MyPageChangeListener"
.end annotation


# instance fields
.field isAutoPlay:Z

.field final synthetic this$0:Lcom/example/location/LiveShowView;


# direct methods
.method private constructor <init>(Lcom/example/location/LiveShowView;)V
    .locals 1

    .prologue
    .line 238
    iput-object p1, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 240
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->isAutoPlay:Z

    return-void
.end method

.method synthetic constructor <init>(Lcom/example/location/LiveShowView;Lcom/example/location/LiveShowView$MyPageChangeListener;)V
    .locals 0

    .prologue
    .line 238
    invoke-direct {p0, p1}, Lcom/example/location/LiveShowView$MyPageChangeListener;-><init>(Lcom/example/location/LiveShowView;)V

    return-void
.end method


# virtual methods
.method public onPageScrollStateChanged(I)V
    .locals 3
    .param p1, "arg0"    # I

    .prologue
    const/4 v2, 0x0

    .line 244
    packed-switch p1, :pswitch_data_0

    .line 264
    :cond_0
    :goto_0
    return-void

    .line 246
    :pswitch_0
    iput-boolean v2, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->isAutoPlay:Z

    goto :goto_0

    .line 249
    :pswitch_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->isAutoPlay:Z

    goto :goto_0

    .line 253
    :pswitch_2
    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/LiveShowView;->access$0(Lcom/example/location/LiveShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v0

    iget-object v1, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v1}, Lcom/example/location/LiveShowView;->access$0(Lcom/example/location/LiveShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/view/ViewPager;->getAdapter()Landroid/support/v4/view/PagerAdapter;

    move-result-object v1

    .line 254
    invoke-virtual {v1}, Landroid/support/v4/view/PagerAdapter;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    .line 253
    if-ne v0, v1, :cond_1

    .line 254
    iget-boolean v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->isAutoPlay:Z

    if-nez v0, :cond_1

    .line 255
    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/LiveShowView;->access$0(Lcom/example/location/LiveShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_0

    .line 258
    :cond_1
    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/LiveShowView;->access$0(Lcom/example/location/LiveShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v0

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->isAutoPlay:Z

    if-nez v0, :cond_0

    .line 259
    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/LiveShowView;->access$0(Lcom/example/location/LiveShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    .line 260
    iget-object v1, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v1}, Lcom/example/location/LiveShowView;->access$0(Lcom/example/location/LiveShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/view/ViewPager;->getAdapter()Landroid/support/v4/view/PagerAdapter;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/view/PagerAdapter;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_0

    .line 244
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onPageScrolled(IFI)V
    .locals 0
    .param p1, "arg0"    # I
    .param p2, "arg1"    # F
    .param p3, "arg2"    # I

    .prologue
    .line 269
    return-void
.end method

.method public onPageSelected(I)V
    .locals 3
    .param p1, "pos"    # I

    .prologue
    .line 273
    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    iget-object v1, v0, Lcom/example/location/LiveShowView;->type:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->list:Ljava/util/List;
    invoke-static {v0}, Lcom/example/location/LiveShowView;->access$3(Lcom/example/location/LiveShowView;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    const-string v2, "type"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 274
    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    iget-object v1, v0, Lcom/example/location/LiveShowView;->name:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/example/location/LiveShowView$MyPageChangeListener;->this$0:Lcom/example/location/LiveShowView;

    # getter for: Lcom/example/location/LiveShowView;->list:Ljava/util/List;
    invoke-static {v0}, Lcom/example/location/LiveShowView;->access$3(Lcom/example/location/LiveShowView;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    const-string v2, "name"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 275
    return-void
.end method
